<template>
    <div class="wrapper">
     我是孙子,引用了爸爸的：{{father}} ; 还引用了爷爷的：{{value2}}
  </div>
</template>

<script>
  export default {
    components: {},
    props: {},
    data (){
      return {
        son1:'我是孙子1',
        son2:'我是孙子2',
    }
    },
    inject:['value2','father'],  // 主页面的数据
    created (){},
    mounted (){
       this.$emit('sonHandle',[this.son1,this.son2])
    },
    activated (){},
    updated (){},
    methods: {},
    computed: {},
    watch: {},
  }
</script>
<style scoped lang='scss'>
</style>